package com.example.chaindemo.web.chain;

import com.example.chaindemo.provider.validator.data.ValidData;
import org.springframework.stereotype.Component;

/**
 * @author PC3
 */
@Component
public class MobileNoValidator extends AbstractValidator {


    @Override
    protected void doValid(ValidData<String> data) {
        System.out.println("validate by mobile no format ");
    }

    @Override
    public String name() {
        return "mobileNoValidator";
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
